package cn.fscode.code.generator.common.fieldbind;

import cn.fscode.commons.data.mate.fieldbind.inter.IFieldBindAnnotationDataGetter;
import cn.fscode.commons.data.mate.fieldbind.model.FieldBindAnnotationData;
import org.springframework.stereotype.Component;

/**
 * @author shenguangyang
 */
@Component
public class CusFieldBIndAnnotationDataGetter implements IFieldBindAnnotationDataGetter<MyFieldBind> {
    @Override
    public FieldBindAnnotationData initFieldBindAnnotation(MyFieldBind fieldAnnotation) {
        return FieldBindAnnotationData.builder().type(fieldAnnotation.type().getType())
                .target(fieldAnnotation.target()).build();
    }
}
